Now you can launch a RPGUnit test suite directly from a CMOne worksheet:
Notice: The Run Unit Test option is not shown, when the selected service program does not match the requirements specified on the preferences page. |
Example of a CMOne type code for RPGUnit test suites:
Typecode: | RUNIT | |
Description: | Unit Test | |
Priority: | 401 | |
Source typecode: | *YES | |
Object typecode: | *YES | |
Source file: | QRUNIT | |
Source attribute: | RPGLE | |
Object type: | *SRVPGM | |
Object attribute: | *BLANK | |
Command: | RUCRTRPG | |
Parameter TSTPGM: | &OL/&EO | |
Parameter SRCFILE: | &SL/&SF | |
Parameter SRCMBR: | &ES | |
Parameter COPTION: | *EVENTF |
The type code for test suites with embedded SQL looks the same, but should have a different Description and the Source attribute must be set to SQLRPGLE.
Hint: Disable preference option Show result view to keep the focus on the CMOne worksheet after a test run. The RPGUnit result view displays a green or red icon on the tab of the view to show the result. |
![]() | Indicates that the unit test finished successfully. | |
![]() | Indicates that the unit test ended with errors. Check the result view for details. | |
![]() | Indicates that all unit tests had been canceled by the user. Check the result view for details. |